<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateActivitiesApplyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('activities_apply', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id');
            $table->string('tree_user_id');
            $table->string('province');
            $table->string('city');
            $table->string('district');
            $table->string('address');
            $table->string('real_name');
            $table->string('tel');
            $table->string('payment');
            $table->string('confirm_pay_code');
            $table->string('status');
            $table->json('transfer_data');
            $table->string('express');
            $table->string('express_code');
	        $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('activities_apply');
    }
}
